<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="strutsTags"%>
<html>
	<head>
		<script type="text/javascript" src="../resource/js/configuration/configProfile.js"></script>
	</head>
<body>
<div class="wrapper">
	<div class="tipdiv">
		<p>1. 计划值是否允许所有人修改（是：所有人可以填写，否：只有HR可以修改）;</p>
		<p>2. 实际值是否允许所有人修改（是：所有人可以填写，否：只有HR可以修改）;</p>
	</div>
	<div class="contentdiv">
	<form id="perfmanceForm" action="configuration/updatePerfmanceConfig.action" name="perfmanceForm" method="post">
		<s:token />
		<s:hidden id="sys_perf_plan_init" name="sys_perf_plan_init"></s:hidden>
		<s:hidden id="sys_perf_plan_eval" name="sys_perf_plan_eval"></s:hidden>
		<s:hidden id="sys_perf_data_cover" name="sys_perf_data_cover"></s:hidden>
		<s:hidden id="sys_perf_hr_cover" name="sys_perf_hr_cover"></s:hidden>
		<p>
		<s:if test="sys_perf_plan_init==0">
					计划值是否允许所有人修改：<input type="radio" name="updateInitConf" value="1"
						class="radio" onclick="changePerfUpdateInitConf();" />是&nbsp; 
                    <input type="radio" name="updateInitConf" value="0"
						onclick="changePerfUpdateInitConf();" checked="checked"/>否
        </s:if>
		<s:else>
					计划值是否允许所有人修改：<input type="radio" name="updateInitConf" value="1"
						class="radio" onclick="changePerfUpdateInitConf();" checked="checked"/>是&nbsp; 
                    <input type="radio" name="updateInitConf" value="0"
						onclick="changePerfUpdateInitConf();" />否
        </s:else>
		</p>
		
		<p>
		<s:if test="sys_perf_plan_eval == 0">
		实际值是否允许所有人修改：<input type="radio" name="updateEvalConf" value="1"
						class="radio" onclick="changePerfUpdateEvalConf();" />是&nbsp; 
                    <input type="radio" name="updateEvalConf" value="0"
						onclick="changePerfUpdateEvalConf();" checked="checked" />否
		</s:if>
		<s:else>
				实际值是否允许所有人修改：<input type="radio" name="updateEvalConf" value="1"
						class="radio" onclick="changePerfUpdateEvalConf();" checked="checked"/>是&nbsp; 
                    <input type="radio" name="updateEvalConf" value="0"
						onclick="changePerfUpdateEvalConf();"  />否
		</s:else>
		</p>
		<p>
				<s:if test="sys_perf_data_cover == 0">
				定量指标导入是否覆盖原有的数据：<input type="radio" name="updateCoverConf" value="1"
						class="radio" onclick="changePerfUpdateCoverConf();" />是&nbsp; 
                    <input type="radio" name="updateCoverConf" value="0"
						onclick="changePerfUpdateCoverConf();" checked="checked" />否
		</s:if>
			<s:else>
					定量指标导入是否覆盖原有的数据：<input type="radio" name="updateCoverConf" value="1"
							class="radio" onclick="changePerfUpdateCoverConf();" checked="checked"/>是&nbsp; 
	                    <input type="radio" name="updateCoverConf" value="0"
							onclick="changePerfUpdateCoverConf();"  />否
			</s:else>
		</p>
				<p>
				<s:if test="sys_perf_hr_cover == 0">
				HR备案数据导入是否覆盖原有的数据：<input type="radio" name="updateHRCoverConf" value="1"
						class="radio" onclick="changePerfUpdateHRCoverConf();" />是&nbsp; 
                    <input type="radio" name="updateHRCoverConf" value="0"
						onclick="changePerfUpdateHRCoverConf();" checked="checked" />否
		</s:if>
			<s:else>
					HR备案数据导入是否覆盖原有的数据：<input type="radio" name="updateHRCoverConf" value="1"
							class="radio" onclick="changePerfUpdateHRCoverConf();" checked="checked"/>是&nbsp; 
	                    <input type="radio" name="updateHRCoverConf" value="0"
							onclick="changePerfUpdateHRCoverConf();"  />否
			</s:else>
		</p>
		<p>
			<input type="button" id="updatePerfmanceBt" class="button" name="updatePerfmanceBt" value=" 更 新 " onClick="doPerfmanceUpdate()" />
		</p>
	</form>
	</div>
</div>
<script type="text/javascript">
function doPerfmanceUpdate(){
	document.getElementById("perfmanceForm").submit();
}

function changePerfUpdateInitConf(){
  document.getElementById("sys_perf_plan_init").value=getValueByName("updateInitConf");
}

function changePerfUpdateEvalConf(){
  document.getElementById("sys_perf_plan_eval").value=getValueByName("updateEvalConf");
}

function changePerfUpdateCoverConf(){
  document.getElementById("sys_perf_data_cover").value=getValueByName("updateCoverConf");
}

function changePerfUpdateHRCoverConf(){
  document.getElementById("sys_perf_hr_cover").value=getValueByName("updateHRCoverConf");
}
</script>
</body>
</html>